package com.gold.consumerdemo.service.impl;

import com.gold.consumerdemo.service.HelloService;
import org.springframework.stereotype.Component;

/**
 * 接口方法--断路器处理
 */
@Component
public class HelloServiceHystrix implements HelloService{
    @Override
    public String sayHello(String name) {
        return "hello,"+name+", sorry hystrix error";
    }
}
